using System.Linq;

namespace Sponsorship.ReadModel
{
    /// <summary>
    /// Defines an interface for a repository from which the UI layer can read <see cref="Dto"/> objects to display in the UI.
    /// </summary>
    public interface IReadRepository
    {
        IQueryable<T> GetAll<T>() where T : class;
        T GetById<T>(string id) where T : class;
    }
}